<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" media="screen" href="../../css/bootstrap.min.css">
</head>
<body>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<form class="form-horizontal" onsubmit="return false" id="form">
		<fieldset>
			<div class='form-group'>
				<label class='col-md-2 control-label'>specificationsNo</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='specificationsNo' type='text' name='specificationsNo' id='specificationsNo' data-bv-notempty='true' data-bv-notempty-message='specificationsNo 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>productId</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='productId' type='text' name='productId' id='productId' data-bv-notempty='true' data-bv-notempty-message='productId 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>hairMaterial</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='hairMaterial' type='text' name='hairMaterial' id='hairMaterial' data-bv-notempty='true' data-bv-notempty-message='hairMaterial 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>hairColor</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='hairColor' type='text' name='hairColor' id='hairColor' data-bv-notempty='true' data-bv-notempty-message='hairColor 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>handleMaterial</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='handleMaterial' type='text' name='handleMaterial' id='handleMaterial' data-bv-notempty='true' data-bv-notempty-message='handleMaterial 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>handleColor</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='handleColor' type='text' name='handleColor' id='handleColor' data-bv-notempty='true' data-bv-notempty-message='handleColor 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>tubeMaterial</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='tubeMaterial' type='text' name='tubeMaterial' id='tubeMaterial' data-bv-notempty='true' data-bv-notempty-message='tubeMaterial 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>tubeColor</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='tubeColor' type='text' name='tubeColor' id='tubeColor' data-bv-notempty='true' data-bv-notempty-message='tubeColor 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>allocation</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='allocation' type='text' name='allocation' id='allocation' data-bv-notempty='true' data-bv-notempty-message='allocation 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>specificationsName</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='specificationsName' type='text' name='specificationsName' id='specificationsName' data-bv-notempty='true' data-bv-notempty-message='specificationsName 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>manufacturer</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='manufacturer' type='text' name='manufacturer' id='manufacturer' data-bv-notempty='true' data-bv-notempty-message='manufacturer 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>shelfLife</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='shelfLife' type='text' name='shelfLife' id='shelfLife' data-bv-notempty='true' data-bv-notempty-message='shelfLife 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>suitableSkinTypes</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='suitableSkinTypes' type='text' name='suitableSkinTypes' id='suitableSkinTypes' data-bv-notempty='true' data-bv-notempty-message='suitableSkinTypes 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>effect</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='effect' type='text' name='effect' id='effect' data-bv-notempty='true' data-bv-notempty-message='effect 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>productDescription</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='productDescription' type='text' name='productDescription' id='productDescription' data-bv-notempty='true' data-bv-notempty-message='productDescription 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>costPrice</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='costPrice' type='text' name='costPrice' id='costPrice' data-bv-notempty='true' data-bv-notempty-message='costPrice 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>internalPrice</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='internalPrice' type='text' name='internalPrice' id='internalPrice' data-bv-notempty='true' data-bv-notempty-message='internalPrice 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>marketingPrice</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='marketingPrice' type='text' name='marketingPrice' id='marketingPrice' data-bv-notempty='true' data-bv-notempty-message='marketingPrice 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>unsoldInventory</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='unsoldInventory' type='text' name='unsoldInventory' id='unsoldInventory' data-bv-notempty='true' data-bv-notempty-message='unsoldInventory 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>undistributedInventory</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='undistributedInventory' type='text' name='undistributedInventory' id='undistributedInventory' data-bv-notempty='true' data-bv-notempty-message='undistributedInventory 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>virtualSales</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='virtualSales' type='text' name='virtualSales' id='virtualSales' data-bv-notempty='true' data-bv-notempty-message='virtualSales 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>beensoldNumber</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='beensoldNumber' type='text' name='beensoldNumber' id='beensoldNumber' data-bv-notempty='true' data-bv-notempty-message='beensoldNumber 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>imagePathIds</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='imagePathIds' type='text' name='imagePathIds' id='imagePathIds' data-bv-notempty='true' data-bv-notempty-message='imagePathIds 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>state</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='state' type='text' name='state' id='state' data-bv-notempty='true' data-bv-notempty-message='state 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>specificationsNote</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='specificationsNote' type='text' name='specificationsNote' id='specificationsNote' data-bv-notempty='true' data-bv-notempty-message='specificationsNote 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>specificationsRemark</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='specificationsRemark' type='text' name='specificationsRemark' id='specificationsRemark' data-bv-notempty='true' data-bv-notempty-message='specificationsRemark 不能为空'>
				</div>
			</div>


			<div class="form-actions">
				<div class="row" align="center">
					<div class="col-md-12">
					    <button class="btn btn-primary" onclick="location.href='tswProductSpecificationsList.html'">返回</button>
						<button class="btn btn-primary" type="submit" onclick="add()">
							<i class="fa fa-save"></i> 保存
						</button>
					</div>
				</div>
			</div>

		</fieldset>
	</form>
</div>
	<script type="text/javascript" src="../../js/libs/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="../../js/jq.js"></script>
	<script type="text/javascript" src="../../js/plugin/bootstrapvalidator/bootstrapValidator.min.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript">
		layui.use(['layer','laydate'], function(){
		    var layer = layui.layer;
		});
		
		function add() {
			$('#form').bootstrapValidator();
			var bootstrapValidator = $("#form").data('bootstrapValidator');
			bootstrapValidator.validate();
		    if(!bootstrapValidator.isValid()){
			   return;
		    }
		    
		    var formdata = $("#form").serializeObject();

			$.ajax({
				type : 'post',
				url : '/tswProductSpecificationss',
				contentType: "application/json; charset=utf-8",  
				data : JSON.stringify(formdata),
				success : function(data) {
					layer.msg("添加成功", {shift: -1, time: 1000}, function(){
                        location.href = "tswProductSpecificationsList.html";
                    });
				}
			});
		}
		
	</script>
</body>
</html>
